package com.yh.ldzl.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yh.ldzl.domain.QcDefect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * 缺陷管理Mapper接口
 *
 * @author ruoyi
 * @date 2024-08-18
 */
@Mapper
public interface QcDefectMapper extends BaseMapper<QcDefect> {



    IPage<QcDefect> selectQcDefectList(IPage<QcDefect> page,
                                                @Param("defect_name") String defect_name,
                                                @Param("index_type") String index_type,
                                                @Param("defect_level") String defect_level);

    List<Map<String, Object>> selectQcDefectType();

    int insertQcDefect(QcDefect qcDefect);
    int updateQcDefect(QcDefect qcDefect);

    int deleteQcDefect(@Param("ids") List<Long> ids);
}
